package com.cserver.pro.controller;


import com.cserver.pro.entity.SysJobLog;
import com.cserver.pro.service.SysJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 定时任务调度日志表(SysJobLog)表控制层
 *
 * @author makejava
 * @since 2020-02-18 21:39:31
 */
@RestController
@RequestMapping("sysJobLog")
public class SysJobLogController {
    /**
     * 服务对象
     */
    @Autowired
    private SysJobLogService sysJobLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysJobLog selectOne(Long id) {

        return this.sysJobLogService.queryById(id);
    }

}